package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import cn.wolfcode.trip.base.domain.Question;
import cn.wolfcode.trip.base.query.QueryObject;

import java.util.List;

public interface QuestionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Question record);

    Question selectByPrimaryKey(Long id);

    Integer queryCommentCount(Long questionId);

    List<Question> selectForList(QueryObject qo);

    List<Question> selectAll();

    int updateByPrimaryKey(Question record);

    void updateBrowseNumber(Long questionId);

    String queryIsLike(Praise obj);

    void updatePraiseNumber(Long questionId);

    void subPraiseNumber(Long questionId);

    void saveQuestionIsLike(Praise obj);

    void deleteQuestionIsLike(Praise obj);
}